<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" 
%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" 
%><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" 
%><%@ page contentType="text/html;charset=ISO-8859-1"
%><html:html locale="true">
    <head>
        <title><bean:message key="departamento.title"/></title>
        <html:base/>
        <link rel="stylesheet" type="text/css" href="../css/style.css"></link>
<style type="text/css">
div#box30525 {width: 400px; margin: 40px auto; }
form#30525 {float: left; margin: 0; padding: 0; display: inline; width: 400px; }
form#30525 p {float: left; margin: 0; padding: 0; display: inline; }
form#30525 label {float: left; margin: 0; padding: 0; display: inline; overflow: hidden; }
form#30525 input {float: left; margin: 0; padding: 0; display: inline; }
  form#30525 p#30527_C {clear: both; width: 400px; }
  form#30525 p#30527_C label {clear: both; width: 400px; }
  form#30525 p#30527_C input {clear: both; width: 396px; }
  form#30525 p#30528_C {clear: both; width: 400px; }
  form#30525 p#30528_C label {clear: both; width: 400px; }
  form#30525 p#30528_C input {clear: both; width: 396px; }
  form#30525 p#30529_C {clear: both; width: 400px; }
  form#30525 p#30529_C label {clear: both; width: 400px; }
  form#30525 p#30529_C input {clear: both; width: 396px; }
  form#30525 p#30526_C {clear: both; width: 400px; }
  form#30525 p#30526_C label {clear: both; width: 400px; }
  form#30525 p#30526_C input {clear: both; width: 396px; }

</style>
    </head>
    <body>
        <div id="header">
            <div id="title"><bean:message key="departamento.title"/></div>
            <div id="menu">
                <ul id="nav">
                  <% if(new Integer(session.getAttribute("tipoUsuario").toString()) == 0) {%>
                    <li><html:link action="/DepartamentoElim.do" paramId="idDepartamento" paramName="idDepartamento"><bean:message key="departamento.label1"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/DepartamentoCrearI.do"><bean:message key="departamento.label2"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                  <%}%>
                    <li><html:link action="/DepartamentoBuscarI.do"><bean:message key="departamento.label3"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/DepartamentoListarI.do"><bean:message key="departamento.label4"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <% if(new Integer(session.getAttribute("tipoUsuario").toString()) == 0) {%>
                    <li><html:link action="/AsignaturaDepartamentoCrearI.do" paramId="idDepartamento" paramName="idDepartamento"><bean:message key="departamento.label6"/></html:link></li>
                    <%}%>
                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div class="content">
                            ${empty msg ? "" : msg}
                <div class="box30525"><html:form styleId="F30525" action="/DepartamentoAct.do">
                  <html:hidden property="idDepartamento"/><table>
                  <tr><td id="30528_C"><label for="30528"><bean:message key="FDepartamento.label1"/></label></td><td>&nbsp;<html:text styleId="30528" property="nombre" size="50"/></td></tr>
                  <tr><td id="30529_C"><label for="30529"><bean:message key="FDepartamento.label2"/></label></td><td>&nbsp;<html:text styleId="30529" property="direccion" size="50"/></td></tr>
                  <tr><td id="30526_C"><label for="30526"><bean:message key="FDepartamento.label3"/></label></td><td>&nbsp;<html:text styleId="30526" property="telefono" size="20"/></td></tr>
                </table>
                  <html:submit styleClass="button"><bean:message key="departamento.label0"/></html:submit>
                </html:form></div>
                <h2><bean:message key="departamento.label5"/></h2>
                <table border="1">
                    <thead>
                        <tr>
                            <th>Codigo</th>
                            <th>Nombre</th>
                            <th>Teor&iacute;a</th>
                            <th>Pr&aacute;ctica</th>
                            <th>Lab</th>
                            <th>Programa</th>

                        </tr>
                    </thead>
                    <tbody><% request.setAttribute("_vacio", new Object[0]);%>
                        <logic:iterate id="asignatura" collection="${empty L_Asignatura ? _vacio : L_Asignatura}">
                            <tr>
                                <td><html:link action="/AsignaturaI.do" paramId="idAsignatura" paramName="asignatura" paramProperty="idAsignatura">${asignatura.codigo}</html:link></td>
                                <td>${asignatura.nombre}</td>
                                <td>${asignatura.horast}</td>
                                <td>${asignatura.horasp}</td>
                                <td>${asignatura.horasl}</td>                             
                                <td> <a href="${asignatura.programa}"  >Ver Programa </a></td>
                                
                            </tr>
                        </logic:iterate>
                    </tbody>
                </table>

                        </div>
                    </div>
                    <div id="right"><jsp:include page="/ppal/menu.jsp" flush="true"/></div>
                    <div class="clearer"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
        <h3 class="title"></h3>
        <div id="footer"> <bean:message key="bottom.label"/> </div>
        
    </body>
</html:html>